<?php

	#doc
	#	classname:	PhpAuthManager
	#	scope:		PUBLIC
	#
	#/doc
	
	class PhpAuthManager extends CPhpAuthManager
	{
		#	internal variables
		
		#	Constructor
		function __construct ( )
		{
			# code...
		}
		
		public function init()
		{
			if ( $this->authFile===null )
			{
				$this->authFile=Yii::getPathOfAlias('application.config.auth').'.php';

			}
			parent::init();
			
			 if(!Yii::app()->user->isGuest)	
			{
				$this->assign(Yii::app()->user->role, Yii::app()->user->id);

			}
		}
	
	}
	

?>